import server from '@/utils/request.js'

export default {
    //轮播图
    getSwiper() {
        return server.post('/api/resources/carousel')

    },
    //各类商品数据 {"categoryName":"电视机"}
    getShopList(data={}){
        return server({
            url:'/api/product/getPromoProduct',
            method:'POST',
            data:data
        })
    },
    //各类热门数据 categoryName: ["电视机", "空调", "洗衣机"]
    getHostList(data={}){
        return server({
            url:'/api/product/getHotProduct',
            method:'POST',
            data:data
        })
    },

}